#shader vertex
#version 330 core

layout(location = 0)in vec4 position;


out vec3 v_TextCoord;
uniform mat4 u_MVP;
void main()
{
    v_TextCoord = position.xyz;
	gl_Position = u_MVP*position;

};

#shader fragment
#version 330 core

layout(location = 0)out vec4 color;

in vec3 v_TextCoord;

uniform vec4 u_Color;
uniform int temp;
uniform samplerCube u_Texture;

void main()
{
	vec4 textColor = texture(u_Texture, v_TextCoord);

	color = textColor;
};